package mop.exception;

/**
 * Exception class to be thrown when a dependency loop is created
 * 
 * @invar none this is a exception
 * 
 * @author	 MOP Team 7
 */
public class IllegalDependencyException extends Throwable 
{

	/**
	 * Initializes an IllegalDependencyException 
	 *  
	 * @post Exception instance is created
	 */
	public IllegalDependencyException()
	{
	}
	
	/**
	 * return a error message that can be used by the gui
	 * 
	 * @return an error message describing the error
	 */
	public String toString()
	{
		
		return "Invalid dependencies specified, this configuration would create a loop";
		
	}
	
	
	/**
	 * weird java demand
	 */
	private static final long serialVersionUID = 1L;
	
;
	
}